<template>
    <div>
        接受最外层组件传递过来的数据 {{ age }} -- {{ count }}
        <el-button @click="addCount">
            addCount
        </el-button>
    </div>
</template>

<script>
export default {
    props: {
        age: Number,
        count: Number,
    },
    setup (props, context) {
        console.log(props, context);
        const addCount = () => {
            context.listeners.addCount();
        };
        return {
            addCount,
        };
    },
};
</script>

<style>

</style>
